import http from '../utils/http'

/**
 * @description 编辑地址
 * @param {*} params 
 */
export const reqAddressEdit = (params) =>{
  return http.post('/address/edit',params)
}

/**
 * @description 根据地址ID获取地址
 * @param {*} addressId 
 */
export const reqAddressDetail = (addressId) =>{
  return http.get(`/address/get/${addressId}`)
}

/**
 * @description 删除收获地址
 * @param {} addressId 
 */
export const reqAddressDelete = (addressId) =>{
  return http.delete(`/address/delete/${addressId}`)
}